package apache_commons_utils;

import domain.User;
import org.apache.commons.beanutils.BeanUtils;

/**
 * @author: hu.shengjin
 * @date: 2019/12/5
 * @description: BeanUtils工具类测试
 */
public class BeanUtilsTest {

    public static void main(String[] args) throws Exception {
        User user = new User();
        BeanUtils.setProperty(user, "name", "li");
        String username = BeanUtils.getProperty(user, "name");
        System.out.println(username);
    }

}

